package com.xebest.web.view;

import com.xebest.util.DateUtil;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;

/**
 * @desc: 退款单列表返回页面view
 * @author: chenjing
 * @createTime: 2017/6/28 0028 下午 5:18
 * @history:
 * @version:v1.0
 */
public class XeVenOrderRefundView {

    /**
     * 退款单号
     */
    private String refundCode;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 退货单号
     */
    private String rejectCode;

    /**
     * 售后单号
     */
    private String afterSalesCode;


    /**
     * 退款金额
     */
    private BigDecimal realRefundedAmount;

    /**
     * 退款类型:1实发差异退款 2自主退货退款 3其他 4取消订单退款
     */
    private Integer refundType;


    /**
     * 退款状态 1：待确认退款 2：已确认退款 3：退款失败 4：退款处理中  5:拒绝退款 6:已删除,7:退款成功
     */
    private Integer refundStatus;


    /**
     * 创建时间
     */
    private String createDate;


    /**
     * 退款时间
     */
    private String refundDate;

    /**
     * 客户账号
     */
    private String loginAccount;


    /**
     * 支付类型 4: 在线支付1：货到付款2：到店自提3：银行汇款
     */
    private Integer payType;


    /**
     * 支付渠道   4：网银支付1：支付宝2：微信3：余额
     */
    private Integer payChannel;

    /**
     * 拒绝原因
     */
    private String refusReason;

    /**
     * 运费退款
     */
    private BigDecimal freAmount;

    /**
     * 订单状态
     */
    private Integer orderStatus;


    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getRefundCode() {
        return refundCode;
    }

    public void setRefundCode(String refundCode) {
        this.refundCode = refundCode;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }


    public String getAfterSalesCode() {
        return afterSalesCode;
    }

    public void setAfterSalesCode(String afterSalesCode) {
        this.afterSalesCode = afterSalesCode;
    }



    public BigDecimal getRealRefundedAmount() {
        return realRefundedAmount;
    }

    public void setRealRefundedAmount(BigDecimal realRefundedAmount) {
        this.realRefundedAmount = realRefundedAmount;
    }

    public Integer getRefundType() {
        return refundType;
    }

    public void setRefundType(Integer refundType) {
        this.refundType = refundType;
    }

    public BigDecimal getFreAmount() {
        return freAmount;
    }

    public void setFreAmount(BigDecimal freAmount) {
        this.freAmount = freAmount;
    }

    public Integer getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(Integer refundStatus) {
        this.refundStatus = refundStatus;
    }



    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.toDate(createDate));
    }


    public String getLoginAccount() {
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount) {
        this.loginAccount = loginAccount;
    }

    public String getRefusReason() {
        return refusReason;
    }

    public void setRefusReason(String refusReason) {
        this.refusReason = refusReason;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getRejectCode() {
        return rejectCode;
    }

    public void setRejectCode(String rejectCode) {
        this.rejectCode = rejectCode;
    }

    public String getRefundDate() {
        return refundDate;
    }

    public void setRefundDate(String refundDate) {
        this.refundDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.toDate(refundDate));
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }
}
